/**
 * 
 */
package edu.umuc.cmsc495_final_project;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 * @author dlipp
 *
 */
public class screenSize {
	 Dimension window = Toolkit.getDefaultToolkit().getScreenSize();
	 
	 private int screenWidth = 0;
	 private int screenHeight = 0;
	 
	 public screenSize(){
		 setScreenHeight(window.height);
		 setScreenWidth(window.width);
	 }

	private void setScreenWidth(int screenWidth) {
		this.screenWidth = screenWidth;
	}

	private void setScreenHeight(int screenHeight) {
		this.screenHeight = screenHeight;
	}
	
	protected int getScreenWidth(){
		return screenWidth;
	}
	
	protected int getScreenHeight(){
		return screenHeight;
	}
	
	protected int getScreenCenter(int frameWidth, int parentWidth){
		return (int)((parentWidth-frameWidth)/2);
	}
}
